import random
user=50
user-=5
# 出拳
punches = ['石头','剪刀','布']
while  user!=0:
 computer_choice = random.choice(punches)
 user_choice = " "
 user_choice = input("请出拳：（石头、剪刀、布）")  # 请用户输入选择
 while  user_choice not in punches:
    print('输入有误，请重新出拳')  # 当用户输入错误，提示错误，重新输入
    user_choice = input()
 if user_choice==computer_choice:
    continue
 elif user_choice=="石头" and computer_choice=="布":
     user-=5    
 elif user_choice=="布"and computer_choice=="石头":
     user+=5     
 elif user_choice=="剪刀"and computer_choice=="石头": 
     user-=5      
 elif user_choice=="石头"and computer_choice=="剪刀": 
     user+=5    
 elif user_choice=="剪刀"and computer_choice=="布": 
     user+=5    
 else:
     user-=5     
 print('————战斗过程————')
 print('电脑出了：%s' %computer_choice)
 print('你出了：%s' %user_choice)
 print("您当前金币%d"%user)
 if user==0:
  print("您输了")
  break
 if user==100:
  print("您赢了")
  break
  
  